package com.sunshine.ssm.test;

import java.util.Scanner;

/**
 * @Author: WeiHong
 * @Date: 2017/5/28 16:14
 */
public class Yanghui {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int l = s.nextInt();
        int num[][] = new int[l][l];
        for (int i = 0; i < l; i++) {
            num[i][0] = num[i][i] = 1;
            for (int j = 1; j < i; j++) {
                num[i][j] = num[i-1][j-1] + num[i-1][j];
            }
        }
        for (int i = 0; i < l; i++) {
            for (int j = 0; j <=i ; j++) {
                System.out.print(num[i][j] + "  ");
            }
            System.out.println();
        }
        
    }
}
